<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>

<title>HelperSequenceCreator (randoop 4.1.0 API)</title>

<link rel="stylesheet" type="text/css" href="../../javadocstyle.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="HelperSequenceCreator (randoop 4.1.0 API)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../randoop/generation/ForwardGenerator.VarAndSeq.html" title="class in randoop.generation"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../randoop/generation/HelperSequenceCreator.SequenceExtender.html" title="interface in randoop.generation"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?randoop/generation/HelperSequenceCreator.html" target="_top">Frames</a></li>
<li><a href="HelperSequenceCreator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">randoop.generation</div>
<h2 title="Class HelperSequenceCreator" class="title">Class HelperSequenceCreator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>randoop.generation.HelperSequenceCreator</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>class <span class="typeNameLabel">HelperSequenceCreator</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Contains static methods that create Sequences.

 <p>The only two methods that are currently externally used are <a href="../../randoop/generation/HelperSequenceCreator.html#createArraySequence-randoop.generation.ComponentManager-randoop.types.Type-"><code>createArraySequence(randoop.generation.ComponentManager, randoop.types.Type)</code></a> and
 <a href="../../randoop/generation/HelperSequenceCreator.html#createCollection-randoop.generation.ComponentManager-randoop.types.InstantiatedType-"><code>createCollection(randoop.generation.ComponentManager, randoop.types.InstantiatedType)</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.SequenceExtender.html" title="interface in randoop.generation">HelperSequenceCreator.SequenceExtender</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#HelperSequenceCreator--">HelperSequenceCreator</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>private static <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#buildAddSequence-randoop.sequence.Sequence-randoop.sequence.TupleSequence-randoop.generation.HelperSequenceCreator.SequenceExtender-">buildAddSequence</a></span>(<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;creationSequence,
                <a href="../../randoop/sequence/TupleSequence.html" title="class in randoop.sequence">TupleSequence</a>&nbsp;elementsSequence,
                <a href="../../randoop/generation/HelperSequenceCreator.SequenceExtender.html" title="interface in randoop.generation">HelperSequenceCreator.SequenceExtender</a>&nbsp;addSequenceExtender)</code>
<div class="block">Returns a sequence that creates a list or array.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>private static <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#createAnArray-randoop.sequence.TupleSequence-randoop.types.Type-int-">createAnArray</a></span>(<a href="../../randoop/sequence/TupleSequence.html" title="class in randoop.sequence">TupleSequence</a>&nbsp;elementsSequence,
             <a href="../../randoop/types/Type.html" title="class in randoop.types">Type</a>&nbsp;elementType,
             int&nbsp;length)</code>
<div class="block">Creates a sequence that builds an array of the given element type using sequences from the
 given list of candidates.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>(package private) static <a href="../../randoop/util/SimpleList.html" title="interface in randoop.util">SimpleList</a>&lt;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#createArraySequence-randoop.generation.ComponentManager-randoop.types.Type-">createArraySequence</a></span>(<a href="../../randoop/generation/ComponentManager.html" title="class in randoop.generation">ComponentManager</a>&nbsp;components,
                   <a href="../../randoop/types/Type.html" title="class in randoop.types">Type</a>&nbsp;collectionType)</code>
<div class="block">Returns a sequence that creates an object of type compatible with the given class.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>(package private) static <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#createCollection-randoop.generation.ComponentManager-randoop.types.InstantiatedType-">createCollection</a></span>(<a href="../../randoop/generation/ComponentManager.html" title="class in randoop.generation">ComponentManager</a>&nbsp;componentManager,
                <a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;collectionType)</code>
<div class="block">Generates a sequence that creates a Collection.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>private static <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#createCollectionCreationSequence-randoop.types.InstantiatedType-randoop.types.ReferenceType-">createCollectionCreationSequence</a></span>(<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;implementingType,
                                <a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;elementType)</code>
<div class="block">Creates the creation sequence for a collection with the given type and element type.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>private static <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#createGenericArrayCreationSequence-randoop.types.ArrayType-int-">createGenericArrayCreationSequence</a></span>(<a href="../../randoop/types/ArrayType.html" title="class in randoop.types">ArrayType</a>&nbsp;arrayType,
                                  int&nbsp;length)</code>
<div class="block">Creates a <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence"><code>Sequence</code></a> for creating an array with parameterized type.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>private static <a href="../../randoop/operation/TypedOperation.html" title="class in randoop.operation">TypedOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#getAddOperation-randoop.types.ParameterizedType-randoop.types.ReferenceType-">getAddOperation</a></span>(<a href="../../randoop/types/ParameterizedType.html" title="class in randoop.types">ParameterizedType</a>&nbsp;collectionType,
               <a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;elementType)</code>
<div class="block">Create a method call operation for the <code>add()</code> method of the given collection type.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>private static <a href="../../randoop/operation/TypedOperation.html" title="class in randoop.operation">TypedOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#getCollectionAddAllOperation-randoop.types.ReferenceType-">getCollectionAddAllOperation</a></span>(<a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;elementType)</code>
<div class="block">Create the operation to call <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html?is-external=true#addAll-java.util.Collection-T...-" title="class or interface in java.util"><code>Collections.addAll(Collection, Object[])</code></a> that
 allows initialization of a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> object.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#getDefaultConstructor-randoop.types.ClassOrInterfaceType-">getDefaultConstructor</a></span>(<a href="../../randoop/types/ClassOrInterfaceType.html" title="class in randoop.types">ClassOrInterfaceType</a>&nbsp;creationType)</code>
<div class="block">Gets the default constructor for a <a href="../../randoop/types/ClassOrInterfaceType.html" title="class in randoop.types"><code>ClassOrInterfaceType</code></a>.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>private static <a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#getElementType-randoop.types.InstantiatedType-">getElementType</a></span>(<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;collectionType)</code>
<div class="block">Returns the element type of the given collection type.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>private static <a href="../../randoop/operation/TypedOperation.html" title="class in randoop.operation">TypedOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#getEnumSetCreation-randoop.types.ParameterizedType-">getEnumSetCreation</a></span>(<a href="../../randoop/types/ParameterizedType.html" title="class in randoop.types">ParameterizedType</a>&nbsp;creationType)</code>
<div class="block">Create the operation needed to create an empty EnumSet of the given type.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>private static <a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../randoop/generation/HelperSequenceCreator.html#getImplementingType-randoop.types.InstantiatedType-">getImplementingType</a></span>(<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;elementType)</code>
<div class="block">Constructs an implementing type for an abstract subtype of <code>java.util.Collection</code> using
 the <a href="../../randoop/types/JDKTypes.html#getImplementingType-randoop.types.ParameterizedType-"><code>JDKTypes.getImplementingType(ParameterizedType)</code></a> method.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="HelperSequenceCreator--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HelperSequenceCreator</h4>
<pre>private&nbsp;HelperSequenceCreator()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="createArraySequence-randoop.generation.ComponentManager-randoop.types.Type-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createArraySequence</h4>
<pre>static&nbsp;<a href="../../randoop/util/SimpleList.html" title="interface in randoop.util">SimpleList</a>&lt;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&gt;&nbsp;createArraySequence(<a href="../../randoop/generation/ComponentManager.html" title="class in randoop.generation">ComponentManager</a>&nbsp;components,
                                                <a href="../../randoop/types/Type.html" title="class in randoop.types">Type</a>&nbsp;collectionType)</pre>
<div class="block">Returns a sequence that creates an object of type compatible with the given class. Wraps the
 object in a list, and returns the list.

 <p>CURRENTLY, will return a sequence (i.e. a non-empty list) only if cls is an array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>components</code> - the component manager with existing sequences</dd>
<dd><code>collectionType</code> - the query type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the singleton list containing the compatible sequence</dd>
</dl>
</li>
</ul>
<a name="getElementType-randoop.types.InstantiatedType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getElementType</h4>
<pre>private static&nbsp;<a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;getElementType(<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;collectionType)</pre>
<div class="block">Returns the element type of the given collection type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>collectionType</code> - the collection type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the ReferenceType with the given collection type</dd>
</dl>
</li>
</ul>
<a name="createCollection-randoop.generation.ComponentManager-randoop.types.InstantiatedType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCollection</h4>
<pre>static&nbsp;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;createCollection(<a href="../../randoop/generation/ComponentManager.html" title="class in randoop.generation">ComponentManager</a>&nbsp;componentManager,
                                 <a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;collectionType)</pre>
<div class="block">Generates a sequence that creates a Collection.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>componentManager</code> - the component manager for selecting values</dd>
<dd><code>collectionType</code> - the type for collection</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a sequence that creates a collection of type <code>collectionType</code></dd>
</dl>
</li>
</ul>
<a name="buildAddSequence-randoop.sequence.Sequence-randoop.sequence.TupleSequence-randoop.generation.HelperSequenceCreator.SequenceExtender-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildAddSequence</h4>
<pre>private static&nbsp;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;buildAddSequence(<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;creationSequence,
                                         <a href="../../randoop/sequence/TupleSequence.html" title="class in randoop.sequence">TupleSequence</a>&nbsp;elementsSequence,
                                         <a href="../../randoop/generation/HelperSequenceCreator.SequenceExtender.html" title="interface in randoop.generation">HelperSequenceCreator.SequenceExtender</a>&nbsp;addSequenceExtender)</pre>
<div class="block">Returns a sequence that creates a list or array. The resulting sequence consists of the two
 given sequences, augmented by N invocations of addSequenceExtender, where N is the size of
 elementsSequence.outputIndices.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>creationSequence</code> - creates an empty array or list</dd>
<dd><code>elementsSequence</code> - a tuple-producing sequence; produces the elements of the result</dd>
<dd><code>addSequenceExtender</code> - creates <code>a[i]=e</code> (for an array) or <code>l.add(e)</code> (for a
     list)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a sequence that creates an array or list that contains all the elements produced by
     elementsSequence</dd>
</dl>
</li>
</ul>
<a name="createCollectionCreationSequence-randoop.types.InstantiatedType-randoop.types.ReferenceType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCollectionCreationSequence</h4>
<pre>private static&nbsp;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;createCollectionCreationSequence(<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;implementingType,
                                                         <a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;elementType)</pre>
<div class="block">Creates the creation sequence for a collection with the given type and element type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>implementingType</code> - the collection type</dd>
<dd><code>elementType</code> - the type of the elements</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence"><code>Sequence</code></a> that creates a collection of <code>implementingType</code></dd>
</dl>
</li>
</ul>
<a name="createAnArray-randoop.sequence.TupleSequence-randoop.types.Type-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createAnArray</h4>
<pre>private static&nbsp;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;createAnArray(<a href="../../randoop/sequence/TupleSequence.html" title="class in randoop.sequence">TupleSequence</a>&nbsp;elementsSequence,
                                      <a href="../../randoop/types/Type.html" title="class in randoop.types">Type</a>&nbsp;elementType,
                                      int&nbsp;length)</pre>
<div class="block">Creates a sequence that builds an array of the given element type using sequences from the
 given list of candidates.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>elementsSequence</code> - the sequence creating element values</dd>
<dd><code>elementType</code> - the type of elements for the array</dd>
<dd><code>length</code> - the length of the array</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a sequence that creates an array with the given element type</dd>
</dl>
</li>
</ul>
<a name="createGenericArrayCreationSequence-randoop.types.ArrayType-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createGenericArrayCreationSequence</h4>
<pre>private static&nbsp;<a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence">Sequence</a>&nbsp;createGenericArrayCreationSequence(<a href="../../randoop/types/ArrayType.html" title="class in randoop.types">ArrayType</a>&nbsp;arrayType,
                                                           int&nbsp;length)</pre>
<div class="block">Creates a <a href="../../randoop/sequence/Sequence.html" title="class in randoop.sequence"><code>Sequence</code></a> for creating an array with parameterized type. Resulting code looks
 like <code>(ElementType[])new RawElementType[dim0]</code>. Note that the <code>SuppressWarnings</code>
 annotation is added when the assignment with the cast is output.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>arrayType</code> - the type of the array</dd>
<dd><code>length</code> - the length of the array to be created</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the sequence to create an array with the given element type and length</dd>
</dl>
</li>
</ul>
<a name="getDefaultConstructor-randoop.types.ClassOrInterfaceType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultConstructor</h4>
<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a>&lt;?&gt;&nbsp;getDefaultConstructor(<a href="../../randoop/types/ClassOrInterfaceType.html" title="class in randoop.types">ClassOrInterfaceType</a>&nbsp;creationType)</pre>
<div class="block">Gets the default constructor for a <a href="../../randoop/types/ClassOrInterfaceType.html" title="class in randoop.types"><code>ClassOrInterfaceType</code></a>. Returns null if the type has
 none.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>creationType</code> - the class type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the reflection object for the default constructor of the given type; null, if there is
     none</dd>
</dl>
</li>
</ul>
<a name="getImplementingType-randoop.types.InstantiatedType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getImplementingType</h4>
<pre>private static&nbsp;<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;getImplementingType(<a href="../../randoop/types/InstantiatedType.html" title="class in randoop.types">InstantiatedType</a>&nbsp;elementType)</pre>
<div class="block">Constructs an implementing type for an abstract subtype of <code>java.util.Collection</code> using
 the <a href="../../randoop/types/JDKTypes.html#getImplementingType-randoop.types.ParameterizedType-"><code>JDKTypes.getImplementingType(ParameterizedType)</code></a> method. Otherwise, returns the
 given type.

 <p>Note: this should ensure that the type has some mechanism for constructing an object</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>elementType</code> - the type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a non-abstract subtype of the given type, or the original type</dd>
</dl>
</li>
</ul>
<a name="getEnumSetCreation-randoop.types.ParameterizedType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnumSetCreation</h4>
<pre>private static&nbsp;<a href="../../randoop/operation/TypedOperation.html" title="class in randoop.operation">TypedOperation</a>&nbsp;getEnumSetCreation(<a href="../../randoop/types/ParameterizedType.html" title="class in randoop.types">ParameterizedType</a>&nbsp;creationType)</pre>
<div class="block">Create the operation needed to create an empty EnumSet of the given type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>creationType</code> - the EnumSet type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the empty EnumSet with the given type</dd>
</dl>
</li>
</ul>
<a name="getAddOperation-randoop.types.ParameterizedType-randoop.types.ReferenceType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAddOperation</h4>
<pre>private static&nbsp;<a href="../../randoop/operation/TypedOperation.html" title="class in randoop.operation">TypedOperation</a>&nbsp;getAddOperation(<a href="../../randoop/types/ParameterizedType.html" title="class in randoop.types">ParameterizedType</a>&nbsp;collectionType,
                                              <a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;elementType)</pre>
<div class="block">Create a method call operation for the <code>add()</code> method of the given collection type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>collectionType</code> - the collection type</dd>
<dd><code>elementType</code> - the element type of the collection</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>return an operation to add elements to the collection type</dd>
</dl>
</li>
</ul>
<a name="getCollectionAddAllOperation-randoop.types.ReferenceType-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getCollectionAddAllOperation</h4>
<pre>private static&nbsp;<a href="../../randoop/operation/TypedOperation.html" title="class in randoop.operation">TypedOperation</a>&nbsp;getCollectionAddAllOperation(<a href="../../randoop/types/ReferenceType.html" title="class in randoop.types">ReferenceType</a>&nbsp;elementType)</pre>
<div class="block">Create the operation to call <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html?is-external=true#addAll-java.util.Collection-T...-" title="class or interface in java.util"><code>Collections.addAll(Collection, Object[])</code></a> that
 allows initialization of a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> object.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>elementType</code> - the element type of the collection</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the operation to initialize a collection from an array</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../randoop/generation/ForwardGenerator.VarAndSeq.html" title="class in randoop.generation"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../randoop/generation/HelperSequenceCreator.SequenceExtender.html" title="interface in randoop.generation"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?randoop/generation/HelperSequenceCreator.html" target="_top">Frames</a></li>
<li><a href="HelperSequenceCreator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
